import React, { useState } from "react"
import Test from "./Test"

export default function App() {
  const [count,setCount] = useState(0)
  function handle(){
    setCount(count+1)
  }
  return (
    <div>
      <span>{count}</span>
      <button onClick={handle}>+</button>
      <br />
      {/* {count % 2 &&<Test></Test>} */}
      <Test count={count}></Test>
    </div>
  )
}
